public class OutClass2 {
    public void func() {
        class test {
            //局部内部类
        }
    }

    public int day = 12;
    int age = 19;
    public static String tele = "193 8979 0399";

    public void printOut() {
        System.out.println("I Love China!!!");
    }

    /*
    * 静态内部类中不能访问外部类的非静态成员。
    *
    */
    static class Innerclass2 {
        public int a = 10;
        int b = 20;
        public static String c = "*****";

        public void printIn() {
            OutClass2 outClass2 = new OutClass2();
            System.out.println(outClass2.day);
            System.out.println(outClass2.age);
            //System.out.println("I Love Java!!!");
            System.out.println(tele);
        }
    }

    public static void main(String[] args) {
        OutClass2.Innerclass2 innerclass2 = new OutClass2.Innerclass2();
    }
}
